<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>my用户登入</title>
</head>
<body>
用户登入
<hr/>
<form method="post" action="login2">
    用户名：<label>
    <input type="text" name="username"/>
</label>
    <br>
    密码: <label>
    <input type="password" name="password"/>
</label>
    <input type="submit" value="登入">
</form>
<h3 th:text="${msg}" style="color: red"></h3>
</body>
</html>